package com.lcm.jnode.model;

import com.jfinal.plugin.activerecord.Model;

/**
 * 基本的网站信息
 * @author L.cm
 * @date 2013-5-30 下午3:21:56
 */
public class Options extends Model<Options> {

    private static final long serialVersionUID = 9028341703520802896L;
    public static final Options dao = new Options();
    
    public static final String ID = "id";                                   // id
    public static final String SITE_NAME = "site_name";                     // 站点名称
    public static final String GIT_URL = "git_url";                         // git链接
    public static final String CDN_PATH = "cdn_path";                       // cdn path
    
    public static final String WB_QQ = "wb_qq";                             // qq 微博
    public static final String WB_SINA = "wb_sina";                         // sina 微博
    
    public static final String DUOSHUO_DOMAIN = "duoshuo_domain";           // 多说配置
    public static final String WUMII_SITE = "wumii_site";                   // 无觅配置
    public static final String WUMII_TAGS = "wumii_tags";                   // 无觅标签
    public static final String SITE_VERSION = "site_version";               // 网站版本

    /**
     * 从缓存中读取
     */
    public Options findByCache() {
    	String sql = "select * from options limit 1";
    	return dao.findFirstByCache(sql);
    }
}
